<template>
  <div class="home-banner">
    <XtxSlider :sliders="bannerList"></XtxSlider>
  </div>
</template>
<script>
import { ref } from 'vue'
import { findBanner } from '@/api/home'
export default {
  setup() {
    const bannerList = ref([])
    findBanner().then(res => {
      bannerList.value = res.result
    })
    return { bannerList }
  }
}
</script>
<style scoped lang="less">
.home-banner {
  width: 1240px;
  height: 450px;
  position: absolute;
  left: 0;
  top: 0;
  z-index: 98;
}
</style>
